
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public abstract class BinaryExpression extends Expression {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getBinaryExpressionType();
	}
	
	protected Expression left;
	protected Expression right;
	
	public BinaryExpression(Span span, Expression left,Expression right) {
		super(span);
		this.left = left;
		this.right = right;
	}
	
	
	public Expression getLeft() {
		return left;
	}
	
	public void setLeft(Expression left) {
		this.left = left;
	}
	
	public Expression getRight() {
		return right;
	}
	
	public void setRight(Expression right) {
		this.right = right;
	}
	

	public abstract void visit(IPascalVisitor visitor);
}
